package private

import "github.com/gin-gonic/gin"

type RouterSqlparam struct{}

func (r *RouterSqlparam) InitSqlparamRouterRole(privateGroup *gin.RouterGroup) (R gin.IRoutes) {
	privateGroup = privateGroup.Group("sqlparam")
	{
		privateGroup.POST("get-sqlparam-list", apiPrivate.ApiSqlparam.GetSqlparamList)
		privateGroup.POST("add-sqlparam", apiPrivate.ApiSqlparam.AddSqlparam)
		privateGroup.POST("edit-sqlparam", apiPrivate.ApiSqlparam.EditSqlparam)
		privateGroup.POST("query-sqlparam-by-id", apiPrivate.ApiSqlparam.QuerySqlparamById)
		privateGroup.POST("query-sqlparam-by-sqlparam-code", apiPrivate.ApiSqlparam.QuerySqlparamBySqlparamCode)
		privateGroup.POST("query-sqlparam-options-by-sqlparam-code", apiPrivate.ApiSqlparam.QuerySqlparamOptionsBySqlparamCode)
		privateGroup.POST("delete-sqlparam-by-id", apiPrivate.ApiSqlparam.DeleteSqlparamById)
		privateGroup.POST("validate-variable", apiPrivate.ApiSqlparam.ValidateVariable)
		privateGroup.POST("validate-sqlparam-option-sql", apiPrivate.ApiSqlparam.ValidateSqlparamOptionSql)
		// privateGroup.POST("query-user-by-role", apiPrivate.ApiRole.QueryUserByRole)
		// privateGroup.POST("remove-role-user", apiPrivate.ApiRole.RemoveRoleUser)
		// privateGroup.POST("add-role-user", apiPrivate.ApiRole.AddRoleUser)

		// privateGroup.POST("get-role-menu-list", apiPrivate.ApiRole.GetRoleMenuList)
		// privateGroup.POST("edit-role-menu", apiPrivate.ApiRole.EditRoleMenu)

		// privateGroup.POST("get-role-api-list", apiPrivate.ApiRole.GetRoleApiList)
		// privateGroup.POST("edit-role-api", apiPrivate.ApiRole.EditRoleApi)

		// privateGroup.POST("edit-role-dept-data-permission", apiPrivate.ApiRole.EditRoleDeptDataPermission)
	}
	return privateGroup
}
